/* 当优化器启用时的样式 */
.width-optimizer-enabled {
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}

/* 为了确保内容居中，我们需要修改一些常见的容器类 */
.width-optimizer-enabled > .container,
.width-optimizer-enabled > .content,
.width-optimizer-enabled > .main,
.width-optimizer-enabled > main,
.width-optimizer-enabled > article {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}

/* 处理固定宽度和位置的元素 */
.width-optimizer-enabled .fixed-width {
    width: auto !important;
    min-width: 0 !important;
}

/* 确保背景内容也能正确显示 */
body.width-optimizer-enabled {
    background-size: contain !important;
    background-position: center !important;
} 